
--[[
无目标状态技能模板
]]
local mt = ac.skill['狂战士']
mt.art = [[ReplaceableTextures\CommandButtons\BTNBerserkForTrolls.blp]]
mt.buff_name = '狂战士'
mt.data1 = 100
mt.time = 12


function mt:on_cast_shot()
    local hero = self.owner
    local buff_data = {
        on_add = self.on_hanle,
        time = self.time,
        skill = self,
    }
    hero:add_buff(self.buff_name)(buff_data)
end

function mt:on_hanle()
    local hero = self.owner
    self:gc(hero:add('攻击速度',self.data1))
end

local buff = ac.buff['狂战士']
buff.art = [[ReplaceableTextures\CommandButtons\BTNBerserkForTrolls.blp]]
buff.tip = [[该单位处于狂热愤怒的作用之下，因此攻击力得到了加强，但是同时也会受到更多的伤害。]]
buff.effect_data = {
    ['hand left'] = [[Abilities\Spells\Orc\TrollBerserk\HeadhunterWEAPONSLeft.mdl]],
    ['hand right'] = [[Abilities\Spells\Orc\TrollBerserk\HeadhunterWEAPONSRight.mdl]],
}